package com.wc.AlgoOJ_train.train1.c5.A402;

import java.util.Scanner;

/**
 * @Author congege
 * @Description 最小公倍数
 * http://43.138.190.70:8888/p/A402
 * @Date Created in 2024/1/3-15:35
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int n = sc.nextInt();
            long ans = sc.nextLong();
            while (--n > 0) {
                long num = sc.nextLong();
                long gc = gcd(num, ans);
                ans = ans * num / gc;
            }
            System.out.println(ans);
        }
    }

    public static long gcd(long a, long b) {
        if (a > b) {
            return gcd(b, a);
        }
        while (b % a > 0) {
            long tmp = b % a;
            b = a;
            a = tmp;
        }
        return a;
    }
}
